﻿using System;
using System.Collections.Generic;
using T.FAS.Runtime.ScheduleJob.Dao;
using T.FAS.Runtime.ScheduleJob.SPI;

namespace T.FAS.Runtime.ScheduleJob.Manager
{
    /// <summary>
    /// 订阅通知范围管理
    /// </summary>
    public class SubscriptionNoticeScopeManager
    {
        private static readonly object lockObj = new object();
        private static SubscriptionNoticeScopeManager _manager = null;
        private SubscriptionNoticeDefinitionLogic logic = null;
        private SubscriptionNoticeScopeManager()
        {
            logic = new SubscriptionNoticeDefinitionLogic();
        }
        public static SubscriptionNoticeScopeManager GetInstance()
        {
            if (_manager == null)
            {
                lock (lockObj)
                {
                    if (_manager == null)
                        _manager = new SubscriptionNoticeScopeManager();
                }
            }
            return _manager;
        }
        public SubscriptionNoticeSetView GetNoticeScopeSets()
        {
            return logic.GetNoticeScopeSets();
        }
    }
}
